﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="System.Globalization"%>
<%@ Import Namespace="ThanhCongJSC.Helper"%>
<%@ Import Namespace="ThanhCongJSC.Models"%>

<% List<ThanhCongJSC.Models.Content> model = new List<ThanhCongJSC.Models.Content>();
   using (DBThangCongJSCEntities entity = new DBThangCongJSCEntities())
   {
       ContentRepository contentRepository = new ContentRepository(entity);
       model = contentRepository.GetTop3Project(Session["CultureInfo"].ToString());
   } %>

   <%foreach(var item in model){ %>
   <div style="width: 33.3%;" id="Div1" class="zt-user zt-box-left">
							    <div class="zt-box-inside"> 
								    <div class="module green">
									    <div class="ztbr">
										    <div class="ztbl">
											    <div class="zttr png"> 
												    <div class="zttl png">
													    <b><a class="title" href='<%= Url.Action("Index", new { queryString = item.ContentCode }) %>'><%= item.ContentTitle %></a></b>
													    <p><%= ResourceUtil.Instance.GetString("GiaTien", new CultureInfo (Session["CultureInfo"].ToString())) %> 
													        : <%=  item.ProjectCost.ToString("##,#", new CultureInfo("vi-Vn"))%> VND</p>
													    <p>
														    <a class="title" href='<%= Url.Action("Index", new { queryString = item.ContentCode }) %>'><img src="<%= Url.Content(Constant.PathImageDuAn + item.ContentImage ?? string.Empty) %>" 
                                                                alt="" width="170px" height="100px" class="img"/></a>
													    </p>
												    </div>
											    </div>
										    </div>
									    </div>
								    </div>
							    </div>
						    </div> 
   <%} %>

<%--    <div style="width: 33.3%;" id="zt-col1" class="zt-user zt-box-left">
							    <div class="zt-box-inside"> 
								    <div class="module green">
									    <div class="ztbr">
										    <div class="ztbl">
											    <div class="zttr png"> 
												    <div class="zttl png">
													    <H3 class="moduletitle">Du An<SPAN> 1</SPAN></H3>
													    <P>Địa Chỉ</P> 
													    <P>
														    <img class="caption" border="0" alt="" src="<%= Application["Root"]%>/Content/images/content7.jpg"/>
													    </P>
												    </div>
											    </div>
										    </div>
									    </div>
								    </div>
							    </div>
						    </div> 

						    <div style="width: 33.3%;" id="zt-col2" class="zt-user zt-box-center">
							    <div class="zt-box-inside"> 
								    <div class="module blue">
									    <div class="ztbr">
										    <div class="ztbl">
											    <div class="zttr png"> 
												    <div class="zttl png">
													    <H3 class="moduletitle">Du An<SPAN> 2</SPAN></H3>
													    <P>Địa Chỉ</P>
													    <P><img class="caption" border="0" alt="" src="<%= Application["Root"]%>/Content/images/content8.jpg"/></P>
												    </div>
											    </div>
										    </div>
									    </div>
								    </div>
							    </div>
						    </div>	 
						    <div style="width: 33.3%;" id="zt-col3" class="zt-user zt-box-right">
							    <div class="zt-box-inside"> 
								    <div class="module orange">
									    <div class="ztbr">
										    <div class="ztbl">
											    <div class="zttr png"> 
												    <div class="zttl png">
													    <H3 class="moduletitle">Du An<SPAN> 3</SPAN></H3>
													    <P>Địa Chỉ</P>
													    <P>
														    <img class="caption" border="0" alt="" src="<%= Application["Root"]%>/Content/images/content9.jpg"/>
													    </P>
												    </div>
											    </div>
										    </div>
									    </div>
								    </div>
							    </div>
						    </div>--%>